import { AuthType, ProjectionShowType } from "./enum";
// server
export const SERVER_TIMEZONE = 'Asia/Shanghai';
export const SERVER_PORT = 3000;
// paging
export const DEFAULT_PAGE_SIZE: number = 20;
export const MAX_PAGE_SIZE: number = 200;
export const DEFAULT_PAGE_INDEX: number = 0;

// validate type
export const LOGIN_AUTH_TYPE: AuthType = AuthType.token;
// session
export const SESSION_MAX_AGE: number = 24 * 3600;  // 一天
// jwt
export const JWT_SECRET = 'KuwoFE';
export const JWT_PREFIX = 'bearer';
export const TOKEN_EXPIRE: number = 24 * 3600;
// Mongodb
export const DB_NAME = "KuwoFE-Test";

export const COMMON_PROJECTION = {
  "_id": ProjectionShowType.hide,
  "is_deleted": ProjectionShowType.hide,
  "deleted_at": ProjectionShowType.hide,
  "deleted_by": ProjectionShowType.hide
}
